package com.yazi.mxz.common.db.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yazi.mxz.common.db.dao.StoreGiftDao;
import com.yazi.mxz.common.entity.beans.StoreGift;

import com.myframework.smhj.hibernate.dao.BasicDao;

/**
 * 
 * @author mo_yq5
 * @date 2014-12-21
 */
@Repository("storeGiftDao")
public class StoreGiftDaoImpl extends BasicDao<StoreGift> implements StoreGiftDao {


	public StoreGiftDaoImpl() {
		super(StoreGift.class);
	}

	@Override
	public int deleteByPromoteId(long promoteId) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("promoteId", promoteId);
		return executeUpdate("delByPromoteIdHql", param);
	}

}
